package com.ruoyi.controller.system;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.controller.BaseController;
import com.ruoyi.domain.SysOperLog;
import com.ruoyi.service.SysOperLogService;

@RestController
@RequestMapping("monitor/operlog")
public class SysOperLogController extends BaseController{
	
	@Autowired
	private SysOperLogService sysOperLogService;
	
	/**
	 * 操作日志
	 * @param operLog
	 * @return
	 */
	@GetMapping("list")
	public TableDataInfo list(SysOperLog operLog) {
		logger.info("操作日志 ,operLog:{}",operLog);
		startPage();
		List<SysOperLog> list = sysOperLogService.selectOperLogList(operLog);
		return getDataTable(list);
	}
}
